<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			//构造函数模式 
			//小明 今年18岁 性别男 有男朋友 男朋友会说话 说什么自己定
			//工厂模式
			//造一辆车 出厂 （合格证/建议零售价/说明书）
			
			function Man(name,age,sex,boyfirend,bfspeak,bfsay){
				this.name=name;
				this.age=age;
				this.sex=sex;
				this.boyfirend=boyfirend;
				this.bfspeak=bfspeak;
				this.bfsay=bfsay;
				console.log(this.name+" 今年"+this.age+"岁，性别"+this.sex+"，"+this.boyfirend+"，男朋友"+this.bfspeak+"，说："+this.bfsay)
			}
			var people=new Man("小明",18,"男","有男朋友","会说话","呵呵呵")
			
			
			function cars(name,price,certificate,instructions){
				var car=new Object()
				car.name=name;
				car.price=price;
				car.certificate=certificate
				car.instructions=instructions
				console.log("造了一辆"+car.name+"，合格证："+car.price+"，零售价："+car.certificate+"，说明书："+car.instructions)
				return car
			}
			var aa=cars("啥","恩恩",10,"哈哈")
			
			
		</script>
	</head>
	<body>
	</body>
</html>
